package com.feign;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.entity.City;
import com.qf.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("MICRO-CITY")
public interface CityFeign {

    @RequestMapping("/city/list")
    public R<Page<City>> cityList(@RequestParam Integer cpage);

    @RequestMapping("/city/insert")
    public R<Boolean> cityInsert(@RequestBody City city);

    @RequestMapping("/city/getCityById")
    public R<City> getCityById(@RequestParam Integer cid);
}
